windisch.array.fill_xarray_from_input_parameters
- windisch.array.fill_xarray_from_input_parameters(tip: TurbinesInputParameters, sensitivity: bool = False, scope: dict | None = None) Tuple[Tuple, DataArray]
Create an xarray labeled array from the sampled input parameters.
This function extracts the parameters’ names and values contained in the parameters attribute of the
TurbinesInputParametersclass inturbines_input_parametersand insert them into a multi-dimensional numpy-like array from the xarray package (http://xarray.pydata.org/en/stable/).- Parameters:
sensitivity –
tip – Instance of the
TurbinesInputParametersclass inturbines_input_parameters.scope – a dictionary to narrow down the scope of vehicles to consider
- Returns:
tuple, xarray.DataArray
tuple (size_dict, application_dict, parameter_dict, year_dict)
array
Dimensions of array:
Turbine size (in kW), e.g. “100”, “500”. str.
Application, e.g. “onshore”, “offshore”. str.
Year. int.
Samples.